package com.igeek.compus.study.seller.service.impl;

import com.igeek.compus.study.seller.dao.SellerDao;
import com.igeek.compus.study.seller.entity.Seller;
import com.igeek.compus.study.seller.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    SellerDao sellerDao;

    @Override
    public List<Seller> getSellerList(Seller seller) {
        return sellerDao.getSellerList(seller);
    }

    @Override
    public int deleteSellerById(Integer id) {
        return sellerDao.deleteSellerById(id);
    }

    @Override
    public int updateSeller(Seller seller) {
        return sellerDao.updateSeller(seller);
    }

    @Override
    public int addSeller(Integer userId) {
        return sellerDao.addSeller(userId);
    }

    @Override
    public int deleteSellerList(List<String> sellerIds) {
        return sellerDao.deleteSellerList(sellerIds);
    }
}
